<?php

namespace App\Http\Controllers\Redirect;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class RedirectController extends Controller
{
    public function old()
    {
        header('X-AA: ZZ');
        return redirect('redirect/new', 301)->header('X-WITCH', 'old');
    }

    public function new(Request $request)
    {
        return response('new');
    }
}
